/*
 * @Author: your name
 * @Date: 2021-11-12 17:38:31
 * @LastEditTime: 2021-11-15 15:11:27
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \flutter_redux\redux_example\lib\widgets\count_view.dart
 */
import 'package:flutter/material.dart';
// import 'package:flutter_redux/flutter_redux.dart';
// import 'package:redux_example/store/state.dart';
import 'package:redux_example/widgets/view_model.dart';

class CountView extends StatelessWidget {
  final ViewModel viewModel;
  const CountView(
    this.viewModel, {
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Text(
      viewModel.count.toString(),
      style: const TextStyle(
        fontSize: 24.0,
      ),
    );
  }
}
